package JSE_02.Map.Demo01;

import java.util.HashMap;
import java.util.Map;

public class Demo01 {
    public static void main(String[] args) {
        show01();
    }

    public static void show01(){
        Map<String,String> map00=new HashMap<>();

        map00.put("李晨","范冰冰0");
        map00.put("李晨","范冰冰1");
        map00.put("冷锋","龙小云");
        map00.put("杨过","小龙女");
        System.out.println(map00);
        System.out.println("===========");
        // 用什么类型取决于val的类型
        String str=map00.remove("杨过");
        System.out.println(str);
        System.out.println(map00);
        System.out.println("===========");
        System.out.println(map00.get("冷锋"));
        System.out.println("===========");
        Boolean B_00=map00.containsKey("李晨");
        System.out.println(B_00);
    }

}
